﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using EventHandler.Libraries.Business.Database;
using EventHandler.Libraries.Business.Security;
using EventHandler.UI.Controllers;
using EventHandler.UI.Models;
using NUnit.Framework;
using Rhino.Mocks;

namespace EventHandler.UI.Tests.Controllers.Authentication
{
    [TestFixture]
    public class AuthenticationTests
    {
        [Test]
        public void implementsIDatabaseHelper()
        {
            var helper = MockRepository.GenerateMock<DatabaseHelper>();
            Assert.IsTrue(helper is IDatabaseHelper);
        }

        [Test]
        public void authenticateReturnsView()
        {
            //IDatabaseHelper dbhelper = MockRepository.GenerateMock<IDatabaseHelper>();
            //dbhelper.Expect(x => x.GetConnection()).Return(new SqlConnection());
            //AuthenticationController controller = new AuthenticationController(dbhelper);
            //var results = controller.Authenticate() as ViewResult;
            //Assert.IsTrue(results is ActionResult);
        }
    }
}
